package com.eight.group.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.sql.Date;

/**
 * 体检预约信息
 */
@Setter
@Getter
@ToString
public class Order implements Serializable{
    public static final String ORDERTYPE_TELEPHONE = "电话预约";
    public static final String ORDERTYPE_WEIXIN = "微信预约";
    public static final String ORDERSTATUS_YES = "已确认";
    public static final String ORDERSTATUS_NO = "未确认";
    public static final String ORDERSTATUS_VISITED = "已到诊";
    public static final String ORDERSTATUS_NOTARRIVED = "未到诊";
    private Integer id;
    private Integer memberId;//会员id
    private Date orderDate;//预约日期
    private String orderType;//预约类型 电话预约/微信预约
    private String orderStatus;//预约状态（是否到诊）
    private Integer setmealId;//体检套餐id
    private Integer siteId; //所选医院id

    public Order() {}

    public Order(Date orderDate, String orderType) {
        this.orderDate = orderDate;
        this.orderType = orderType;
    }

    public Order(Integer memberId, Date orderDate, Integer setmealId) {
        this.memberId = memberId;
        this.orderDate = orderDate;
        this.setmealId = setmealId;
    }



    public Order(Integer id, Integer memberId, Date orderDate, String orderType, String orderStatus, Integer setmealId) {
        this.id = id;
        this.memberId = memberId;
        this.orderDate = orderDate;
        this.orderType = orderType;
        this.orderStatus = orderStatus;
        this.setmealId = setmealId;
    }

    public Order(Integer id, Integer memberId, String orderType, String orderStatus, Integer setmealId) {
        this.id = id;
        this.memberId = memberId;
        this.orderType = orderType;
        this.orderStatus = orderStatus;
        this.setmealId = setmealId;
    }

    public Order(Integer id, Integer memberId, String orderType, String orderStatus, Integer setmealId,Integer siteId) {
        this.id = id;
        this.memberId = memberId;
        this.orderType = orderType;
        this.orderStatus = orderStatus;
        this.setmealId = setmealId;
        this.siteId=siteId;
    }

    public Order(Date orderDate, String orderType, String orderStatus) {
        this.orderDate = orderDate;
        this.orderType = orderType;
        this.orderStatus = orderStatus;
    }
}
